NotEmptyCollection
Represents collections containing at least one element.
Parameters
The type of elements contained in this collection.
Functions
Returns the element at the specified index in this collection, or throws an IndexOutOfBoundsException if the index is out of bounds.
Returns the string representation of this collection as a not blank string.
Properties
Inheritors
Extensions
Returns the element at the specified index in this collection, or returns the result of calling the defaultValue function if the index is out of bounds.
Returns a not empty list containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a not empty list containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a not empty list containing all the elements of this collection, or returns null
if this collection is empty.
Returns a not empty mutable list containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a not empty mutable list containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a not empty mutable list containing all the elements of this collection, or returns null
if this collection is empty.
Returns a not empty mutable set containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a not empty mutable set containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a not empty mutable set containing all the elements of this collection, or returns null
if this collection is empty.
Returns a not empty set containing all the elements of this collection, or throws an IllegalArgumentException if this collection is empty.
Returns a not empty set containing all the elements of this collection, or returns the result of calling the defaultValue function if this collection is empty.
Returns a not empty set containing all the elements of this collection, or returns null
if this collection is empty.